# aiapp/urls.py

from django.urls import path
from .views import get_wenxin_token, ChatView, ForgotPasswordAPIView, HelloView, ProtectedView, RegisterView, LoginView, ResetPasswordConfirmView, UpdatePasswordView, ForgotPasswordSerializer, GetUserInfoView

urlpatterns = [
    path('chat/', ChatView.as_view(), name='chat'),
    path('get_wenxin_token/', get_wenxin_token, name='get_wenxin_token'),
    path('getUserInfo/', GetUserInfoView.as_view(), name='getUserInfo'),
    path('forgot-password/', ForgotPasswordAPIView.as_view(), name='forgot-password'),
    path('auth/update-password/', UpdatePasswordView.as_view(), name='update-password'),
    path('login/', LoginView.as_view(), name='login'),
    path('register/', RegisterView.as_view(), name='register'),
    path('hello/', HelloView.as_view(), name='hello'),
    path('protected/', ProtectedView.as_view(), name='protected'),
    path('reset-password/<str:uidb64>/<str:token>/', ResetPasswordConfirmView.as_view(), name='reset-password-confirm'),
]
